<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>InfdNotePlugin</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.0">
<link rel="home" href="index.html" title="libinfinity-0.4 Reference Manual">
<link rel="up" href="ch05.html" title="Libinfinity server side API">
<link rel="prev" href="InfdDirectory.html" title="InfdDirectory">
<link rel="next" href="libinfinity-0.4-infd-storage.html" title="infd-storage">
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="InfdDirectory.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch05.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libinfinity-0.4 Reference Manual</th>
<td><a accesskey="n" href="libinfinity-0.4-infd-storage.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libinfinity-0.4-InfdNotePlugin.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libinfinity-0.4-InfdNotePlugin.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="InfdNotePlugin">
<a name="libinfinity-0.4-InfdNotePlugin"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libinfinity-0.4-InfdNotePlugin.top_of_page"></a>InfdNotePlugin</span></h2>
<p>InfdNotePlugin</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="libinfinity-0.4-InfdNotePlugin.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="libinfinity-0.4-InfdNotePlugin.html#InfdNotePlugin" title="InfdNotePlugin">InfdNotePlugin</a>;
</pre>
</div>
<div class="refsect1" title="Description">
<a name="libinfinity-0.4-InfdNotePlugin.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="libinfinity-0.4-InfdNotePlugin.details"></a><h2>Details</h2>
<div class="refsect2" title="InfdNotePlugin">
<a name="InfdNotePlugin"></a><h3>InfdNotePlugin</h3>
<pre class="programlisting">typedef struct {
  gpointer user_data;

  /* The typename of the storage backend this plugin can be used with, such
   * as InfdFilesystemStorage. */
  const gchar* storage_type;

  /* The note type this plugin handles, such as InfText */
  const gchar* note_type;

  InfSession*(*session_new)(InfIo* io,
                            InfCommunicationManager* manager,
                            InfSessionStatus status,
                            InfCommunicationHostedGroup* sync_group,
                            InfXmlConnection* sync_connection,
                            gpointer user_data);

  InfSession*(*session_read)(InfdStorage* storage,
                             InfIo* io,
                             InfCommunicationManager* manager,
                             const gchar* path,
                             gpointer user_data,
                             GError** error);

  gboolean(*session_write)(InfdStorage* storage,
                           InfSession* session,
                           const gchar* path,
                           gpointer user_data,
                           GError** error);
} InfdNotePlugin;
</pre>
<p>
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15</div>
</body>
</html>